package com.yu.service;

import com.yu.Pojo.User;

import java.sql.SQLException;

public interface UserService {
    //和UserDao中一样是插入操作 但是service面向的是客服，把名字改一改
    public int addUser(User user) throws Exception;
    //根据用户名查询 用户是否存在
    public User findUserByName(String username) throws SQLException, ClassNotFoundException;


    public User findUser(User user) throws SQLException, ClassNotFoundException;
}
